const http = require("http");
const url = require("url");
const util =require("util");
const querystring =require("querystring");

var urlStr="http://127.0.0.1:8888/user/1";
var urlParams=url.parse(urlStr);
console.log(util.inspect(urlParams));
var query=urlParams.pathname.split("/");
console.log(util.inspect(query));